package com.youku.plugins.toolboxV4
{
   import com.youku.interfaces.IPlugin;
   import com.youku.plugins.toolboxV4.view.ToolBoxMediator;
   import com.youku.plugins.toolboxV4.model.ToolboxDataProxy;
   import flash.display.MovieClip;
   import com.youku.interfaces.IPlayerProxy;
   
   public class ToolboxFacade extends Object implements IPlugin
   {
      
      public function ToolboxFacade() {
         super();
      }
      
      private static var _instance:ToolboxFacade;
      
      public static function getInstance() : ToolboxFacade {
         if(_instance == null)
         {
            _instance = new ToolboxFacade();
         }
         return _instance as ToolboxFacade;
      }
      
      private var _mediator:ToolBoxMediator;
      
      private var _dataProxy:ToolboxDataProxy;
      
      public function init(param1:MovieClip, param2:IPlayerProxy) : void {
         ToolboxFont.setToolboxFont();
         this.initAsset();
         this._dataProxy = new ToolboxDataProxy(param2);
         this._mediator = new ToolBoxMediator(param1,param2,this._dataProxy);
      }
      
      private function initAsset() : void {
      }
   }
}
